Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top guides section to a11y intro + a11y content updates #6059

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Dec 26, 2024

I rewrote a good bit of the a11y documentation, working on improving conciseness, scannability and adding more visuals. I also added a 'top guides' section to the a11y intro.

Something like below to highlight Top Guides on the main intro page.

Screenshot 2024-12-26 at 12 25 18 PM

@jennifer-shehane jennifer-shehane self-assigned this Dec 26, 2024
Copy link

cypress bot commented Dec 26, 2024

cypress-documentation    Run #213

Run Properties:  status check passed Passed #213  •  git commit b2595de286: Update docs/accessibility/guides/maintain-accessibility.mdx
Project cypress-documentation
Branch Review top-guides-a11y
Run status status check passed Passed #213
Run duration 03m 23s
Commit git commit b2595de286: Update docs/accessibility/guides/maintain-accessibility.mdx
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 279
View all changes introduced in this branch ↗︎
UI Coverage  10.85%
  Untested elements 2227  
  Tested elements 3  
Accessibility  95.71%
  Failed rules  2 critical   5 serious   4 moderate   0 minor
  Failed elements 501  

@jennifer-shehane jennifer-shehane changed the title Add top guides section to a11y intro Add top guides section to a11y intro + a11y content updates Dec 27, 2024
Copy link
Contributor

@marktnoonan marktnoonan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointed out a few things here and there. Overall this is a big improvement in readability and scanning, I'm surprised how much actually, the before and after is really a different experience. Marking "request changes" specifically as there is chunk in the "About Axe Core®" section that cuts off unexpectedly.

docs/accessibility/core-concepts/accessibility-score.mdx Outdated Show resolved Hide resolved

The most important thing about the score is that it is deterministic and consistent across runs, so that when changes in the application do bubble up to show an increase or decrease in the score, that is going be meaningful, and not noise.
The key value of the score is its consistency across runs. Changes in the score reliably reflect accessibility improvements or regressions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change doesn't end up more readable, I'm suggesting a longer variant that might be clearer.

Suggested change
The key value of the score is its consistency across runs. Changes in the score reliably reflect accessibility improvements or regressions.
The key value of the score that the calculation is repeated consistently across runs - Cypress is not trying to catch anything "in the moment" during test execution. This means that changes in the score reliably reflect accessibility improvements or regressions.

docs/accessibility/core-concepts/accessibility-score.mdx Outdated Show resolved Hide resolved
docs/accessibility/core-concepts/how-it-works.mdx Outdated Show resolved Hide resolved
docs/accessibility/core-concepts/run-level-reports.mdx Outdated Show resolved Hide resolved

(You can skip the `--key` option by setting `CYPRESS_RECORD_KEY` as an environment variable. Learn more about recording in our [Recorded Runs documentation](/cloud/features/recorded-runs)).

## Key benefits
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have removed the mention of other workarounds, the benefits list doesn't really have a reference point. It still makes sense to mention the existence of workarounds that don't require the Cloud I think.

docs/accessibility/guides/maintain-accessibility.mdx Outdated Show resolved Hide resolved
docs/accessibility/guides/maintain-accessibility.mdx Outdated Show resolved Hide resolved
docs/accessibility/guides/maintain-accessibility.mdx Outdated Show resolved Hide resolved
docs/accessibility/guides/maintain-accessibility.mdx Outdated Show resolved Hide resolved
Copy link
Contributor

@marktnoonan marktnoonan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointed out a few things here and there. Overall this is a big improvement in readability and scanning, I'm surprised how much actually, the before and after is really a different experience. Marking "request changes" specifically as there is chunk in the "About Axe Core®" section that cuts off unexpectedly.

Comment on lines +51 to +53
<a href="/accessibility/guides/improve-accessibility">
<Icon name="chart-line" />
<h3>Improve Accessibility</h3>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to keep this structure, we can shorten the name of the link by referencing the card titles as the label. This way of labelling means there's just one source of truth for the proper name of the card & not two things to update if we re-order the content or whatever.

Suggested change
<a href="/accessibility/guides/improve-accessibility">
<Icon name="chart-line" />
<h3>Improve Accessibility</h3>
<a href="/accessibility/guides/improve-accessibility" aria-labelledby="card-title-1">
<Icon name="chart-line" />
<h3 id="card-title-1">Improve Accessibility</h3>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants